package onlineclass.dao;



import onlineclass.entity.OVideo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OVideoMapper {
    //模糊查找资源   根据 标题String
    public List<OVideo> search(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("title") String title);
    // 模糊查询 条数 int
    public int searchTotal(@Param("title") String title);
    //添加视频
    public int add(OVideo p);

    public int del(@Param("id") long id);
    public int update(OVideo p);
    public OVideo get(long id);
}
